package com.taojie.graduation.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "product")
public class Product {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 商品介绍
     */
    @TableField(value = "introduce")
    private String introduce;

    /**
     * 商品图片
     */
    @TableField(value = "image")
    private String image;

    /**
     * 推荐人数
     */
    @TableField(value = "recommend")
    private Integer recommend;

    /**
     * 商品价格
     */
    @TableField(value = "price")
    private Double price;

    /**
     * 优惠价格
     */
    @TableField(value = "discounts")
    private Double discounts;

    /**
     * 品牌id
     */
    @TableField(value = "brand_id")
    private Integer brandId;
}